
const WXAPI = require('./axios.js');


module.exports = {
	GetOpenToken:function(){
		var p = new Promise((result,reject)=>{
			WXAPI.GetOpenToken({
				"clientId": "doncoApi2018",
				"clientsecret": "dtxISRFsKs9ap9I9pc3da3sJpBMLNJxJg8LOF1iUu9"
			}).then(res => {
				uni.setStorageSync('access_token',res.access_token)
				uni.setStorageSync('token_type',res.token_type)
				result()
			})
		})
		return p;
	}
}

